package com.group.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.group.commons.entity.ProductCategory;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductCategoryDao extends BaseMapper<ProductCategory> {
    List<ProductCategory> selectAllProductCategories(IPage<ProductCategory> pages,@Param("category") ProductCategory category);

    Integer insertCategory(@Param("category") ProductCategory category, @Param("fid") int fid);

    Integer updateCategory(ProductCategory category);
}
